package com.jacobson.huobi.mvp.presenter

import com.jacobson.core.di.annotation.ActivityScope
import com.jacobson.core.mvp.BasePresenter
import com.jacobson.huobi.common.expansion.applySchedulersIoMain
import com.jacobson.huobi.common.expansion.onResponseResult
import com.jacobson.huobi.mvp.contract.AboutCeluerenContract
import com.jacobson.huobi.mvp.contract.EditPasswordContract
import com.jacobson.huobi.mvp.contract.KycAuthContract
import com.jacobson.huobi.mvp.contract.RenevalMemberContract
import javax.inject.Inject

@ActivityScope
class RenevalMemberPresenter @Inject constructor(
    view: RenevalMemberContract.View,
    model: RenevalMemberContract.Model
) : BasePresenter<RenevalMemberContract.View, RenevalMemberContract.Model>(view, model),
    RenevalMemberContract.Presenter {

    override fun loadVipRecord(page: Int) {
        model.loadVipRecord(page)
            .applySchedulersIoMain()
            .onResponseResult(view) {resp ->
                view?.onLoadVipRecordResp(resp)
            }
    }
}
